package com.wm.walmart.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xieyize
 * @since 2019-12-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Modules implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "mId", type = IdType.AUTO)
	private Integer mId;

	@TableField("mName")
	private String mName;

	@TableField("mParentId")
	private Integer mParentId;

	@TableField("mWeight")
	private Integer mWeight;
	
	@TableField("path")
	private String path;

	@TableField(exist = false)
	private List<Modules> children;
	
	@TableField(exist = false)
	private Boolean checked = false;
	
	@TableField(exist = false)
	private String state;

}
